package com.itheima.StringBuilder;

public class Demo1 {
    public static void main(String[] args) {
        method();
    }
    public static void method(){
        long start =System.currentTimeMillis();
        String s="";
        for (int i = 0; i <50000; i++) {
            s+=i;
        }
        System.out.println(s);
        long end =System.currentTimeMillis();
        System.out.println(end-start);
    }
}
